<template>
  <div class="mask" @click.self="$emit('hide-share')">
    <div class="share-option">
      <div class="option">
        <div class="opt-item">
          <span class="icon">
            <img src="@/assets/share-icon/Op.png" alt="" />
          </span>
          <span class="tag">晒图片</span>
        </div>
        <div class="opt-item">
          <span class="icon">
            <img src="@/assets/share-icon/_i.png" alt="" />
          </span>
          <span class="tag">写攻略</span>
        </div>
        <div class="opt-item">
          <span class="icon">
            <img src="@/assets/share-icon/UN.png" alt="" />
          </span>
          <span class="tag">传视频</span>
        </div>
      </div>
      <div class="close" @click="$emit('hide-share')">
        <div>
          <img src="@/assets/error/Lm.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.mask {
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;

  img {
    height: 100%;
    width: 100%;
  }

  .share-option {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;

    div {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;

      &.option {
        width: 80%;
        height: 60%;
        margin: 0 auto;

        .opt-item {
          display: flex;
          align-items: center;
          flex-direction: column;

          .icon {
            width: 40px;
            height: 40px;
            margin-bottom: 5px;
          }
          .tag {
            color: #e8e8e8;
            font-size: 14px;
            font-weight: 600;
          }
        }
      }
      &.close {
        height: 40%;
        div {
          width: 20px;
          height: 20px;
        }
      }
    }
  }
}
</style>
